<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>体检指标</title>
	<%@ include file="/commons/static.jsp"%>
	<link rel="stylesheet" href="${ctx}/dep/zTreeStyle/zTreeStyle.min.css" />
</head>
<body>
        <div class="wrapper">
            <!-- 面包屑导航 -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="fa fa-home"></i> <a href="#">首页</a></li>
                    <li class="active"><a href="#">业务配置管理</a></li>
                    <li class="active">体检库指标项配置</li>

                </ul>
            </div>
            <div class="page-body">
                <div class="row">
                    <div class="col-xs-12 col-md-12">
                        <div class="widget">
                            <div class="widget-body" style="overflow:hidden">
                                <div class="col-lg-12 col-sm-12 col-xs-12 ">
                                    <div class="widget">
                                    
                                    <input id="from" value="${from}"  style="display: none"/>
                                    
                                        <form id="registrationForm" method="post" class="form-horizontal clearfix bv-form" onsubmit="return validateForm()">
                                            <div class="bancgud">
                                                
                                                <input value="${data.id}" type="text" name="id" style="display: none"/>
                                                
                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">选择体检库</label>
                                                    <div class="col-lg-8">
                                                        <select data-selected="${medicalId}" class="form-control" name="medicalId" id="medical">
                                                            <option value="0" selected="selected">请选择</option>
                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">选择项目</label>
                                                    <div class="col-lg-8">
                                                        <select data-selected="${data.subjectsId}" class="form-control" name="subjectsId" id="subjects">
                                                            <option value="0" selected="selected">请选择</option>
                                                        </select>
                                                     </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">科室名称</label>
                                                    
                                                    <div class="col-lg-8">
                                                        
                                                        <c:if test="${from!='check'}">
				                                            <div class="input-group">
				                                        </c:if>
																<input value="${data.departmentId}" type="text" class="form-control" name="departmentId" id="departmentId" style="display: none">
																<input value="${data.departmentName}"  placeholder="请点击选择按钮" readonly="readonly" type="text" class="form-control" name="departmentName" id="departmentName">
																
																<c:if test="${from!='check'}">
																	<span class="input-group-btn">
																		<a href="javascript:selectDepart()" class="btn btn-default" type="button" style="line-height: 20px">选择</a>
																	</span>
																</c:if>
																
														<c:if test="${from!='check'}">		
															</div>
														</c:if>                                                        
                                                        
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">指标项名称<span class="help-inline"><font color="red">*</font></span></label>
                                                    <div class="col-lg-8">
                                                        <input type="text" name="name" value="${data.name}" class="form-control" data-bv-notempty="true" data-bv-notempty-message="指标项名称不能为空">
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">适宜年龄</label>
                                                    <div class="col-lg-8">
                                                        <input type="text" name="useAgeMin" value="${data.useAgeMin}" class="form-control" placeholder="最小年龄" style="width: 200px;display: inline-block;" >
                                                        ~
                                                        <input type="text" name="useAgeMax" value="${data.useAgeMax}" class="form-control" placeholder="最大年龄" style="width: 200px;display: inline-block;" >
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">男性参考范围</label>
                                                    <div class="col-lg-8">
                                                        <input type="text" name="scopeManMin" value="${data.scopeManMin}" class="form-control" placeholder="最小范围" style="width: 200px;display: inline-block;" >
                                                        ~
                                                        <input type="text" name="scopeManMax" value="${data.scopeManMax}" class="form-control" placeholder="最大范围" style="width: 200px;display: inline-block;" >
                                                    </div>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">女性参考范围</label>
                                                    <div class="col-lg-8">
                                                        <input type="text" name="scopeWomenMin" value="${data.scopeWomenMin}" class="form-control" placeholder="最小范围" style="width: 200px;display: inline-block;" >
                                                        ~
                                                        <input type="text" name="scopeWomenMax" value="${data.scopeWomenMax}" class="form-control" placeholder="最大范围" style="width: 200px;display: inline-block;" >
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">数据单位</label>
                                                    <div class="col-lg-8">
                                                        <input type="text" name="unit" value="${data.unit}" class="form-control" data-bv-field="unit">
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">是否重要</label>
                                                    <div class="control-group">
                                                        <div class="radio" style="display: inline-block;">
                                                            <label>
                                                                <input name="isImportant" value="1" type="radio" <c:if test="${data.isImportant==1 || data.isImportant==null}">checked="checked"</c:if>  >
                                                                <span class="text">是</span>
                                                            </label>
                                                        </div>
                                                        <div class="radio" style="display: inline-block;">
                                                            <label>
                                                                <input name="isImportant" value="0" type="radio" <c:if test="${data.isImportant==0}">checked="checked"</c:if>>
                                                                <span class="text">否</span>
                                                            </label>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">是否对比</label>
                                                    <div class="control-group">
                                                        <div class="radio" style="display: inline-block;">
                                                            <label>
                                                                <input name="isCompare" value="1" type="radio" <c:if test="${data.isCompare==1 || data.isCompare==null}">checked="checked"</c:if> >
                                                                <span class="text">是</span>
                                                            </label>
                                                        </div>
                                                        <div class="radio" style="display: inline-block;">
                                                            <label>
                                                                <input name="isCompare" value="0" type="radio" <c:if test="${data.isCompare==0}">checked="checked"</c:if>>
                                                                <span class="text">否</span>
                                                            </label>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-lg-2 control-label">指标项说明</label>
                                                    <div class="col-lg-8">
                                                        <textarea class="form-control" name="descrpiton" rows="3" >${data.descrpiton}</textarea>
                                                    </div>
                                                </div>
                                            </div>
                                            
                                            <div style="padding-top:25px">
                                            	<div class="col-xs-6">
													<input type="submit" class=" btn btn-darkorange col-xs-12 col-sm-2 col-sm-offset-10" value="确认">
												</div>
												<div class="col-xs-6">
													<a class=" btn btn-active col-xs-12 col-sm-2 " onclick="window.history.back(-1)">取消</a>
												</div>
											</div>
                                            
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        
        <div class="modal fade in" aria-hidden="false" id="deparment">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button class="close" type="button" data-dismiss="modal">×</button>
						<h4 class="modal-title">选择科室</h4>
					</div>
					<div class="modal-body form-horizontal">
						<form id="searchForm" onsubmit="return submitForm()">
							<div class="form-search">
								<label class="control-label col-lg-4">关键词：</label>
								<input id="keyWord" name="name" type="text" style="width: 200px;display: inline-block;">
								<div style="display: inline-block;margin-left: 10px;">
									<input type="submit" class="btn btn-primary" id="officesearch" value="搜索"/>
								</div>
							</div>
							<div class="area-select" style="margin-top: 20px">
								<ul id="departTree" class="ztree col-lg-offset-4"></ul>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-sm-10 col-sm-offset-2">
									<span class="btn btn-darkorange col-sm-3" id="confirmButton">确定</span>
									<span class="btn btn-active col-sm-3 col-xs-offset-3" id="cancelButton">取消</span>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
<script src="${ctx}/dep/zTreeStyle/jquery.ztree.all.min.js"></script>
<script src="${ctx}/home/institutions/medical_content_add.js"></script>

</body>
</html>